package client.GUI;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;
/**
 * Helpclass for drawing table background.
 * @author SIIM
 *
 */
public class PanelBack extends JPanel {
	private static final long serialVersionUID = 2092507081327340878L;

	@Override
	public void paint(Graphics g) {
		this.setOpaque(false);
		final double COEF = 7;
		int x = (int) ((double) this.getWidth() / COEF);
		int y = (int) ((double) this.getHeight() / (COEF - 2.6));
		g.setColor(new Color(0, 100, 0));
		g.fillRoundRect(x, y, (int) (x * (double) 5.05), y * 2, 
				(int)COEF * 3,(int)COEF * 3);

	}

}
